<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div id="content"></div>
	<script type="text/javascript">
		/*
		 * A function that is dynamically declared with no name
		*/
	
		var contentDiv = document.getElementById('content');
		// Create an onload event handler that assigns the load event to a function.
		window.onload = function() {
		  contentDiv.innerHTML = "Our anonymous function was called because the onload event was fired!";
		};
		
		(function(){
			alert("no parameter.");
		})();
		
		(function(para){
			alert(para)
		})("parameter abcde")
	</script>
</body>
</html>